<?php

session_start();
require('../functions/settings.php');
require('functions/global_functions.php');
$conn = mysql_connect( $dbHost, $dbUser, $dbPass ) or die("unable to connect to Database");
mysql_select_db($dbName);

// load in settings

$settingsQuery = "SELECT * FROM settings";
$settingsResult=mysql_query( $settingsQuery ) or die ("Error in query: $settingsQuery. " . mysql_error());
while($settingsArr=mysql_fetch_assoc($settingsResult)){
$settings[$settingsArr['setting_name']] = $settingsArr['setting_value'];
}

if(!isset($_SESSION['admin_user'])){
header("Location: login.php");
}

?>